<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>函数求最大值</title>

    <script>
        function getMax(a, b) {
            return a > b ? a : b;
        }

        console.log(getMax(24, 4));
    </script>


</head>

<body>

</body>

</html>